package com.changgou.user.feign;

import com.changgou.entity.Result;
import com.changgou.user.pojo.Address;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @author 20201118
 */
@FeignClient(name = "user")
public interface AddressFeign {

    /**
     * 根据用户名称，进行用户地址的查询
     * @return
     */
    @RequestMapping("/address/findByUsernameList")
    public Result<List<Address>> findByUsernameList();
}
